/**
 * 
 */
package com.swfee.qinben.session;


/**
 * 系统初始化时需要用的参数
 * 
 * @author ddr
 * 
 */
public class AppSession {

	//是否初始化
	private static boolean isInit = false;
	private static int screenHeight;
	private static int screenWidth;
	private static float density;
	private static int densityDpi;
	private static float scaledDensity;
//	private static String phoneImie ;
//	public static Class loginFisrtClass;
	private static String terminalCode ;
	
	private AppSession(){
		
	}

	public static void init() {
//		
//		String phoneInfo = "Product: " + android.os.Build.PRODUCT;
//        phoneInfo += ", CPU_ABI: " + android.os.Build.CPU_ABI;
//        phoneInfo += ", TAGS: " + android.os.Build.TAGS;
//        phoneInfo += ", VERSION_CODES.BASE: " + android.os.Build.VERSION_CODES.BASE;
//        phoneInfo += ", MODEL: " + android.os.Build.MODEL;
//        phoneInfo += ", SDK: " + android.os.Build.VERSION.SDK;
//        phoneInfo += ", VERSION.RELEASE: " + android.os.Build.VERSION.RELEASE;
//        phoneInfo += ", DEVICE: " + android.os.Build.DEVICE;
//        phoneInfo += ", DISPLAY: " + android.os.Build.DISPLAY;
//        phoneInfo += ", BRAND: " + android.os.Build.BRAND;
//        phoneInfo += ", BOARD: " + android.os.Build.BOARD;
//        phoneInfo += ", FINGERPRINT: " + android.os.Build.FINGERPRINT;
//        phoneInfo += ", ID: " + android.os.Build.ID;
//        phoneInfo += ", MANUFACTURER: " + android.os.Build.MANUFACTURER;
//        phoneInfo += ", USER: " + android.os.Build.USER;
        // Toast.makeText(this, phoneInfo, Toast.LENGTH_LONG).show();
        
		terminalCode = android.os.Build.MODEL + "|"
		+ android.os.Build.VERSION.RELEASE;
//		screenHeight = CurenActivitUtils.getScreenHeightPx(ctx);
//		screenWidth = CurenActivitUtils.getScreenWidthPx(ctx);
//		density = CurenActivitUtils.getDensity(ctx);
//		densityDpi = CurenActivitUtils.getDensityDpi(ctx);
//		scaledDensity = CurenActivitUtils.getScaledDensity(ctx);
//		TelephonyManager tm = (TelephonyManager) ctx 
//			    .getSystemService(Context.TELEPHONY_SERVICE);
//		phoneImie = tm.getDeviceId();
		
		isInit = true;
	}

	public int getScreenHeight() {
		return screenHeight;
	}

	public int getScreenWidth() {
		return screenWidth;
	}

	public float getDensity() {
		return density;
	}

	public int getDensityDpi() {
		return densityDpi;
	}

	public float getScaledDensity() {
		return scaledDensity;
	}

	public static boolean isInit() {
		return isInit;
	}

	public static String getTerminalCode() {
		return terminalCode;
	}

	public static void setTerminalCode(String terminalCode) {
		AppSession.terminalCode = terminalCode;
	}

	

	
}
